package com.toutiao.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.toutiao.dao.NewsPraiseMapper;
import com.toutiao.dao.model.NewsPraise;
import com.toutiao.dao.model.NewsPraiseExample;

@Service
public class NewsPraiseService {
	@Autowired
	private NewsPraiseMapper newsPraiseMapper;

	public int countByExample(NewsPraiseExample example) {
		return this.newsPraiseMapper.countByExample(example);
	}

	public NewsPraise selectByPrimaryKey(Integer id) {
		return this.newsPraiseMapper.selectByPrimaryKey(id);
	}

	public List<NewsPraise> selectByExample(NewsPraiseExample example) {
		return this.newsPraiseMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.newsPraiseMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(NewsPraise record) {
		return this.newsPraiseMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(NewsPraise record) {
		return this.newsPraiseMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(NewsPraiseExample example) {
		return this.newsPraiseMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(NewsPraise record, NewsPraiseExample example) {
		return this.newsPraiseMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(NewsPraise record, NewsPraiseExample example) {
		return this.newsPraiseMapper.updateByExample(record, example);
	}

	public int insert(NewsPraise record) {
		return this.newsPraiseMapper.insert(record);
	}

	public int insertSelective(NewsPraise record) {
		return this.newsPraiseMapper.insertSelective(record);
	}

}
